﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Microsoft.Phone.Controls;

namespace Lexathon
{
    public partial class NewGamePage : PhoneApplicationPage
    {
        public NewGamePage()
        {
            InitializeComponent();

            FillInitialPlayerList();
        }

        void FillInitialPlayerList()
        {
            PlayerList.Items.Add(new GamePlayer() { PlayerName = "player1", PlayerType = "PERSON" });
            PlayerList.Items.Add(new GamePlayer() { PlayerName = "player2", PlayerType = "CPU" });
        }

        private void StartGameButton_Click(object sender, RoutedEventArgs e)
        {
            NavigationService.Navigate(new Uri("/GamePage.xaml", UriKind.Relative));
        }


    }

    public class GamePlayer
    {
        public string PlayerName { get; set; }
        public string PlayerType { get; set; }

    }
}